package cn.elwy.rcp.ui.explorer.wizard;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;

import cn.elwy.rcp.ui.wizard.BaseWizardPage;

import cn.elwy.rcp.ui.explorer.composite.ModuleComposite;

public class ModuleWizardPage extends BaseWizardPage {

  public static final String ID = "ModuleWizardPage";

  /**
   * Create the wizard.
   */
  public ModuleWizardPage() {
    super(ID);
    setTitle("模块选择");
    setDescription("选择需要构建的组件");
  }

  /**
   * Create contents of the wizard.
   * 
   * @param parent
   */
  public void createControl(Composite parent) {
    Composite container = new Composite(parent, SWT.NULL);

    setControl(container);
    container.setLayout(new GridLayout(1, false));

    ModuleComposite composite = new ModuleComposite(container, SWT.NONE);
    composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1));
  }

  @Override
  public boolean finishButtonPressed() {
    return true;
  }

  @Override
  public boolean nextButtonPressed() {
    return true;
  }

  @Override
  public boolean backButtonPressed() {
    return super.backButtonPressed();
  }

}
